# base docker image
FROM daocloud.io/java:8

# mount local disk to current container
VOLUME /tmp

# copy file to container
ADD cloud-simple-docker-1.0.0.jar /app.jar

# open server port
EXPOSE 8080

# config command after container started
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]